package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/book")
public class BookController {
    @ResponseBody //把返回的数据当做数据处理，不会再去找页面
    @RequestMapping("/save")
    public String save() {
        System.out.println("book hello");
        return "{'info':'book hello'}";
    }
}
